<?php
include_once "../funciones/class_carrito_orden.php";
include_once "filtro_cabecera.php";
include_once "../funciones/funciones_php.php";
?>

<html>
<head>
    <title>Crear Master de Carga</title>
		<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
      <script type="text/javascript" src="../js/jquery-1.5.2.js"></script>
		<script type="text/javascript" src="../js/jquery-ui-1.8.14.custom.min.js"></script>
      <script type='text/javascript' src='../js/jquery.autocomplete.js'></script> 
      <script type="text/javascript" src="../js/jquery.validate.js"></script>
      <script type='text/javascript' src='../js/funciones_js.js'></script>
		<link type="text/css" href="../css/start/jquery-ui-1.8.14.custom.css" rel="Stylesheet" />
		<link rel="stylesheet" type="text/css" href="../css/plantilla.css" />
		<link rel="stylesheet" type="text/css" href="../css/jquery.autocomplete.css" />
		<link rel="stylesheet" type="text/css" href="../css/tabla.css" />
      <script>
      $(document).ready(
         function(){
                         
            $('#Finalizar,#Atras,#Cancelar,#Agregar,#Eliminar').button();
         }
      );
      </script>
</head>
<body onload="formulario.numeroOrden.focus()">


<div id="content">
    
   <form autocomplete="off" action="proceso_master_carga.php" method="post" name="formulario" id="formulario">
		<p>
		<!--TITULO-->
		<div id="titulo_seccion">
		<fieldset>
		  <table>
			<tr>
			  <td>
			 <font>VINCULACION DE ORDENES DE FLETE AL MASTER</font>
			  </td>
			  <td align="right">
			  <input type="submit" id="Finalizar" name="Finalizar" value="Finalizar" />
			  <input type="submit" name="Atras" id="Atras" value="Atras" />
           <input type="submit" name="Cancelar" id="Cancelar" value="Cancelar" />
			  </td>
			</tr>
		  </table>
		</fieldset>
		</div>
		</p>
      
     <label>Numero de orden de flete:</lable><INPUT type="text" name="idOrden">
     <input type="submit" name="Agregar" id="Agregar" value="Agregar">
   </form>
   <small>
      Debe ingresar: <?php echo "Cajas: " . ($_SESSION['form_master']['caja'] - $_SESSION['aux']['caja']) . " |  Sobres: " . ($_SESSION['form_master']['sobre'] - $_SESSION['aux']['sobre']) . " |  Valijas: " . ($_SESSION['form_master']['valija'] - $_SESSION['aux']['valija']); ?>
   </small>
     <br />
   
   <?php if(isset($msj) && !empty($msj)): ?>
   <div style=" background: #fff5ae; border: 1px solid #ff0000; height: 30px; width:1000px;"><?php echo $msj;  ?></div>  
   <?php endif; ?>
   <br />
     
</body>
</html>